TEDeactivate
TEDeactivate make an edit record inactive
#include <TextEdit.h> TextEdit
void TEDeactivate(hTE );
TEHandle hTE; handle of an edit record
TEDeactivate deactivates an edit record by unhighlighting its selection
range or erasing the vertical-bar caret.
hTE is a handle obtained via TENew (old style TextEdit record) or
TEStylNew (new style TextEdit record). It leads to a
variable-length TERec structure and identifies the edit record to be
deactivated.
Returns: none

Notes: This function should be called every time the GetNextEvent
function indicates that the window containing the edit record has become
inactive (i.e., on activateEvt events when modifiers bit 0 is cleared to 0).
Use TEActivate when the window becomes active. Use TEDispose when
you want to get rid of the edit record altogether.
Refer to the discussion of the the EventRecord and GetNextEvent.